package com.Cychat.commons.entity.pojo;


import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("shopping_cart")
public class ShoppingCart {
    @Schema(description="购物车ID")
    @TableId(value = "cart_id", type = IdType.AUTO)
    private Integer cartId;
    @Schema(description="用户ID")
    private Long userId;
    @Schema(description="商品ID")
    private Integer productId;
    @Schema(description="商品数量")
    private Integer quantity;
    @Schema(description="是否选中")
    private Integer selected;
    @Schema(description="加入购物车时间")
    private Date createTime;
    @Schema(description="修改时间")
    private Date updateTime;
}